<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
         function handleNum(num){
            if(num>=100000000){
            num = (num/10000000)+"亿"
        }
            else if(num>=10000){
            num = Math.ceil(num/10000)+"万"
        } 
            return num+"";
        }
        var arr =[
            {name:"你好",playcount:4000},
            {name:"它",playcount:'404000'},
            {name:"我",playcount:200000000},
        ]
        arr.forEach(item=>{
           item.playcount = handleNum(item.playcount);
        })
        console.log(arr)
    </script>
</body>
</html>